package com.loans.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.loans.product.mapper.TbLocantypeMapper;
import com.loans.product.domain.TbLocantype;
import com.loans.product.service.ITbLocantypeService;

/**
 * 贷款类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-12
 */
@Service
public class TbLocantypeServiceImpl implements ITbLocantypeService 
{
    @Autowired
    private TbLocantypeMapper tbLocantypeMapper;

    /**
     * 查询贷款类型
     * 
     * @param id 贷款类型主键
     * @return 贷款类型
     */
    @Override
    public TbLocantype selectTbLocantypeById(Long id)
    {
        return tbLocantypeMapper.selectTbLocantypeById(id);
    }

    /**
     * 查询贷款类型列表
     * 
     * @param tbLocantype 贷款类型
     * @return 贷款类型
     */
    @Override
    public List<TbLocantype> selectTbLocantypeList(TbLocantype tbLocantype)
    {
        return tbLocantypeMapper.selectTbLocantypeList(tbLocantype);
    }

    /**
     * 新增贷款类型
     * 
     * @param tbLocantype 贷款类型
     * @return 结果
     */
    @Override
    public int insertTbLocantype(TbLocantype tbLocantype)
    {
        return tbLocantypeMapper.insertTbLocantype(tbLocantype);
    }

    /**
     * 修改贷款类型
     * 
     * @param tbLocantype 贷款类型
     * @return 结果
     */
    @Override
    public int updateTbLocantype(TbLocantype tbLocantype)
    {
        return tbLocantypeMapper.updateTbLocantype(tbLocantype);
    }

    /**
     * 批量删除贷款类型
     * 
     * @param ids 需要删除的贷款类型主键
     * @return 结果
     */
    @Override
    public int deleteTbLocantypeByIds(Long[] ids)
    {
        return tbLocantypeMapper.deleteTbLocantypeByIds(ids);
    }

    /**
     * 删除贷款类型信息
     * 
     * @param id 贷款类型主键
     * @return 结果
     */
    @Override
    public int deleteTbLocantypeById(Long id)
    {
        return tbLocantypeMapper.deleteTbLocantypeById(id);
    }
}
